import React from 'react';
import Record from 'choerodon-ui/pro/lib/data-set/Record';
import { DataSet, Form, TextField, Switch, TextArea } from 'choerodon-ui/pro';

interface DetailProps {
  record: Record | undefined
  dataSet: DataSet
}

const Detail: React.FC<DetailProps> = ({ dataSet }) => {
  return (
    // 设置 <> 或者 div 避免在工程中使用的时候 因为 GUmUIFlag 的插入导致样式等的错位
    <>
      <Form dataSet={dataSet}>
        <TextField name="code" />
        <TextField name="name" />
        <TextField name="price" />
        <TextField name="count" />
        <TextArea name="desc" />
        <Switch name="status" />
      </Form>
    </>
  );
};

export default Detail;